<template>
    <div class="header">
        <div class="left">
            <el-icon class="icon-s"><VideoCamera /></el-icon>
            <span>录屏</span>
        </div>
        <div class="drgan">
            显示器1
            <div class="stop" @click="stopCur">
                <el-icon class="icon-s"><WarningFilled /></el-icon>
                停止
            </div>
        </div>
        <div class="right">
            <el-icon class="icon-s"><SemiSelect /></el-icon>
            <el-icon class="icon-s"><CloseBold /></el-icon>
        </div>
    </div>
</template>
<script setup>
var ipcRender = window.require('electron').ipcRenderer;
function stopCur(){
    ipcRender.send('stop:cur')
}
</script>
<style scope>
    * {
        margin: 0;
        padding: 0;
    }
    .header {
        height: 40px;
        width: 100%;
        background: rgba(11, 9, 9,.9);
        display: flex;
    }
    .left {
        width: 100px;
        height: 100%;
        line-height: 40px;
        text-align: left;
    }
    .drgan {
        flex: auto;
        height: 100%;
        line-height: 40px;
        font-size: 18px;
        color: #ccc;
    }
    .right {
        width:100px
    }
    .icon-s {
        font-size: 28px;
        color: #ccc;
        height: 42px;
        padding-left: 10px;
        vertical-align: bottom;
    }
    .left span {
        display: inline-block;
        height: 40px;
        line-height: 40px;
        font-size: 18px;
        color: #ccc;
        padding-left: 10px;
    }
    .right .icon-s {
        font-size: 24px;
    }
    .drgan .stop {
        margin-right: 20px;
        float: right;
    }
    .drgan .icon-s {
        color: red;
        font-size: 24px;
        vertical-align: middle;
    }

</style>